package com.sky.blog.dao.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.Nullable;


/**
 * @Author: shiwangZhou
 * @Description:
 * @Date: 2020-06-22 11:41
 */
@Data
@NoArgsConstructor
public class PostsPageDTO {
    @ApiModelProperty(value = "页数", example = "1")
    private Integer pageNum;
    private Integer pageSize;
    @ApiModelProperty(value = "关键词", example = "java")
    private String searchWords;
    @ApiModelProperty(value = "分类", example = "java")
    private String category;

    public PostsPageDTO(@Nullable Integer pageNum, @Nullable Integer pageSize) {
        this.pageNum = pageNum;
        this.pageSize = pageSize;
    }
}
